<?php

namespace App\Http\Controllers\Manager;

use App\Http\Controllers\Controller;
use App\Helper;
use App\Http\Requests\ServerStoreRequest;
use App\Http\Requests\ServerUpdateRequest;
use App\Models\Goods;
use App\Models\Item;
use App\Models\Machine;
use App\Models\Server;
use Exception;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Auth;

class MachineController extends Controller
{
    public $prefix='manager.machine';

    public function add($id){
        $server=$this->CheckServer($id);
        return view($this->prefix.'.add',compact('server'));
    }
    public function show($id){
        $server=$this->CheckServer($id);
        $machine=$server->machine;
        return view($this->prefix.'.show',compact('machine'));
    }
}
